Skip to main content

library cache: mutex X

Short Description

A library cache operation is being performed and Oracle is trying to get the library cache mutex in eXclusive mode.

Detailed Description

Mutexes are a lightweight method of serialising access to an object - in this case the library cache, ensuring that only one operation can take place at any one time.

How to reduce this wait

  • Pinning hot PL/SQL with dbms_shared_pool.markhot.
  • Increase shared pool size.
  • Setting cursor_sharing to exact or force.

Oracle documentation - DBMS_SHARED_POOL

Julian Dontcheff's blog - Reducing “library cache: mutex X” concurrency with dbms_shared_pool.markhot

Search online

If this article doesn't have the information you need you can try searching online. Remember, you can contribute suggestions to this page.